const data = {
    namespaced: true,
    state: {
        //当前劳动争议编辑数据
        editData: function() {
            try {
                return JSON.parse(window.sessionStorage.getItem("editData")) || {}
            } catch (error) {
                console.log(error)
                return {}
            }
        }()
    },
    mutations: {
        setEditData(state, payload) {

            try {
                window.sessionStorage.setItem('editData', JSON.stringify(payload))
            } catch (error) {
                console.log(error)
            }
            state.editData = payload;
        }
    }
}

export default data